function v = int2vect(x)
  % convert an integer number into a vector containing its digits
  
  v = [];
  while x > 0.1
    xdiv = floor(x/10);
    digit = x - 10*xdiv;
    v = [v digit];
    x = xdiv;
  end
  
